<template>
  <div id="listAdmin">
        <el-table :data="users" style="width: 100%">
      <el-table-column prop="adminId" label="索引"> </el-table-column>
      <el-table-column label="头像">
        <template slot-scope="scope">
          <img
            style="width: 100%"
            :src="
              'http://localhost:4578/messy_json/img?path=' + scope.row.avatar
            "
            alt=""
          />
        </template>
      </el-table-column>
       <el-table-column prop="name" label="姓名"> </el-table-column>     
      <el-table-column prop="phone" label="手机号"> </el-table-column>
      <el-table-column prop="password" label="密码"> </el-table-column>
      <el-table-column prop="createTime" label="注册时间"> </el-table-column>
      <el-table-column prop="updateTime" label="更新时间"> </el-table-column>
    </el-table>
  </div>
</template>
<script>

export default {
  name: "allUser",
  data() {
    return {
      users: [],
    };
  },
  mounted() {
    this.axios.post(`http://localhost:4578/all_json/admin`, {}).then((ret) => {
      this.users = ret.data;
    });
  },
};
</script>